﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Confirm_Modal.aspx.cs" Inherits="AjaxToolkitDemo.Confirm_Modal" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server"
         TargetControlID ="Button1" DisplayModalPopupID="Modal1">
        </cc1:ConfirmButtonExtender>
        <cc1:ModalPopupExtender ID="Modal1" runat="server"
         TargetControlID ="Button1" PopupControlID="Panel1"
          OkControlID="btnYes" CancelControlID="btnNo" Drag="true">         
        </cc1:ModalPopupExtender>
        <cc1:DragPanelExtender ID="DragPanelExtender1" runat="server"
         TargetControlID="Panel1" DragHandleID="Label1">
        </cc1:DragPanelExtender>
        <asp:Button ID="Button1" runat="server" Text="Button" />
        <asp:Panel ID="Panel1" runat="server">
            <asp:Label ID="Label1" runat="server" Text="This is a label"></asp:Label>
            <asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
            <asp:Button ID="btnYes" runat="server" Text="Yes" />
            <asp:Button ID="btnNo" runat="server" Text="No" />
        
        </asp:Panel>
        
    </div>
    </form>
</body>
</html>
